// 获取面经详情
import request from '@/utils/request'

export const getArticleList = (data) => {
  return request.get('/admin/interview/query', { params: data })
}

// 添加面经
export const createArticle = (data) => {
  return request.post('/admin/interview/create', data)
}

// 删除面经
export const removeArticle = (id) => {
  return request({
    method: 'DELETE',
    url: '/admin/interview/remove',
    data: { id }
  })
}

// 根据id获取单个面经详情
export const getArticleDetail = (id) => {
  return request.get('/admin/interview/show', { params: { id } })
}

// 更新面经数据
export const updateArticle = (data) => {
  return request.put('/admin/interview/update', data)
}
